package io.jnet.server.util;

import io.jnet.common.bufstorage.BufStorage;
import io.jnet.common.decodec.FrameDecodec;
import io.jnet.common.streamprocessor.StreamProcessor;

public class ServerChannelContextConfig
{
    private StreamProcessor[]     processors;
    private BufStorage            bufStorage;
    private int                   maxMerge = 10;
    private FrameDecodec          frameDecodec;
    
    public FrameDecodec getFrameDecodec()
    {
        return frameDecodec;
    }
    
    public void setFrameDecodec(FrameDecodec frameDecodec)
    {
        this.frameDecodec = frameDecodec;
    }
    
    public int getMaxMerge()
    {
        return maxMerge;
    }
    
    public void setMaxMerge(int maxMerge)
    {
        this.maxMerge = maxMerge;
    }
    
    public BufStorage getBufStorage()
    {
        return bufStorage;
    }
    
    public void setBufStorage(BufStorage bufStorage)
    {
        this.bufStorage = bufStorage;
    }
    
    public StreamProcessor[] getProcessors()
    {
        return processors;
    }
    
    public void setProcessors(StreamProcessor... processors)
    {
        this.processors = processors;
    }
    
}
